package store.lunangangster.engine.impl.bpmn.behavior;

import store.lunangangster.engine.impl.Context;
import store.lunangangster.engine.impl.entity.ExecutionEntity;

public class BpmnBehaviorHelper {

  /**
   * 所有FlowNode的默认行为：选择合适的OutGoingSequenceFlow并go next
   * @param execution flowNode的执行表示
   */
  public void doDefaultOutGoingBehavior(ExecutionEntity execution) {
    Context.getCommandContext().getAgenda().addTakeOutGoingSequenceFlowOperation(execution);
  }
}
